<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>API Reference</title>

    <link rel="stylesheet" href="css/style.css" />
    <script src="js/all.js"></script>


          <script>
        $(function() {
            setupLanguages(["bash","javascript"]);
        });
      </script>
      </head>

  <body class="">
    <a href="#" id="nav-button">
      <span>
        NAV
        <img src="images/navbar.png" />
      </span>
    </a>
    <div class="tocify-wrapper">
        <img src="images/logo.png" />
                    <div class="lang-selector">
                                  <a href="#" data-language-name="bash">bash</a>
                                  <a href="#" data-language-name="javascript">javascript</a>
                            </div>
                            <div class="search">
              <input type="text" class="search" id="input-search" placeholder="Search">
            </div>
            <ul class="search-results"></ul>
              <div id="toc">
      </div>
                    <ul class="toc-footer">
                                  <li><a href='http://github.com/mpociot/documentarian'>Documentation Powered by Documentarian</a></li>
                            </ul>
            </div>
    <div class="page-wrapper">
      <div class="dark-box"></div>
      <div class="content">
          <!-- START_INFO -->
<h1>Info</h1>
<p>Welcome to the generated API reference.
<a href="http://localhost/docs/collection.json">Get Postman Collection</a></p>
<!-- END_INFO -->
<h1>general</h1>
<!-- START_66df3678904adde969490f2278b8f47f -->
<h2>Authenticate the request for channel access.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/broadcasting/auth" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/broadcasting/auth");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET broadcasting/auth</code></p>
<p><code>POST broadcasting/auth</code></p>
<!-- END_66df3678904adde969490f2278b8f47f -->
<!-- START_a925a8d22b3615f12fca79456d286859 -->
<h2>Get a JWT via given credentials.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/auth/login" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/auth/login");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/auth/login</code></p>
<!-- END_a925a8d22b3615f12fca79456d286859 -->
<!-- START_19ff1b6f8ce19d3c444e9b518e8f7160 -->
<h2>Log the user out (Invalidate the token).</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/auth/logout" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/auth/logout");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/auth/logout</code></p>
<!-- END_19ff1b6f8ce19d3c444e9b518e8f7160 -->
<!-- START_994af8f47e3039ba6d6d67c09dd9e415 -->
<h2>Refresh a token.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/auth/refresh" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/auth/refresh");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/auth/refresh</code></p>
<!-- END_994af8f47e3039ba6d6d67c09dd9e415 -->
<!-- START_866f4b6c3759e8b6da5deadb74eeb59e -->
<h2>Get the authenticated User.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/auth/userinfo" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/auth/userinfo");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/auth/userinfo</code></p>
<!-- END_866f4b6c3759e8b6da5deadb74eeb59e -->
<!-- START_f1409e7c54da47502b078d2b38fb5e04 -->
<h2>api/auth/userinfo</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/auth/userinfo" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/auth/userinfo");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/auth/userinfo</code></p>
<!-- END_f1409e7c54da47502b078d2b38fb5e04 -->
<!-- START_f458d2f5b51820ea887e6b8999b9e5d7 -->
<h2>api/auth/password</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/auth/password" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/auth/password");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/auth/password</code></p>
<!-- END_f458d2f5b51820ea887e6b8999b9e5d7 -->
<!-- START_694d515ed78d71d94f11471b855bbe79 -->
<h2>api/auth/forgetpassword</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/auth/forgetpassword" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/auth/forgetpassword");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/auth/forgetpassword</code></p>
<!-- END_694d515ed78d71d94f11471b855bbe79 -->
<!-- START_92ba3ec331e308a0c8bc6e4161f3dc8b -->
<h2>api/auth/sendcode</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/auth/sendcode" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/auth/sendcode");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/auth/sendcode</code></p>
<!-- END_92ba3ec331e308a0c8bc6e4161f3dc8b -->
<!-- START_6808dabbf47e7f5e0c573437c7bb44a9 -->
<h2>确认授权</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/verifycode" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/verifycode");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/verifycode</code></p>
<!-- END_6808dabbf47e7f5e0c573437c7bb44a9 -->
<!-- START_17614f126274394ee0986d69d53470f1 -->
<h2>生成二维码</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/qrcode" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/qrcode");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "status": 1,
    "msg": "qrcode\/20190708\/23b107c0a15411e9b631107b447b97e4.png",
    "s": "23b107c0a15411e9b631107b447b97e4"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/qrcode</code></p>
<!-- END_17614f126274394ee0986d69d53470f1 -->
<!-- START_c2621eec387705b7f436df3011162745 -->
<h2>检查qruuid</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/checkQruuid" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/checkQruuid");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">{
    "status": 0,
    "msg": "还未登录"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/checkQruuid</code></p>
<!-- END_c2621eec387705b7f436df3011162745 -->
<!-- START_bbcc142cd49fac752f86cf88014951ee -->
<h2>后台首页</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/dashboard" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/dashboard");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/dashboard</code></p>
<!-- END_bbcc142cd49fac752f86cf88014951ee -->
<!-- START_5a78de56b144513156feef7888ad3668 -->
<h2>检查版本更新</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/checkupdate" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/checkupdate");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/checkupdate</code></p>
<!-- END_5a78de56b144513156feef7888ad3668 -->
<!-- START_dc775a4c8ae117603de1196bd4b0013e -->
<h2>api/warns</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warns" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warns");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warns</code></p>
<!-- END_dc775a4c8ae117603de1196bd4b0013e -->
<!-- START_6fc50c02947699073ceed2a4a0c80122 -->
<h2>保存命令</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/donghuang/command" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/donghuang/command");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/donghuang/command</code></p>
<!-- END_6fc50c02947699073ceed2a4a0c80122 -->
<!-- START_ab008feb3f391ea1c3cfd83a35024f64 -->
<h2>api/unreadnum</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/unreadnum" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/unreadnum");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/unreadnum</code></p>
<!-- END_ab008feb3f391ea1c3cfd83a35024f64 -->
<!-- START_fc1e4f6a697e3c48257de845299b71d5 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/users" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/users");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/users</code></p>
<!-- END_fc1e4f6a697e3c48257de845299b71d5 -->
<!-- START_5dac10bb34c7618b018b0230d4a51648 -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/users/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/users/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/users/create</code></p>
<!-- END_5dac10bb34c7618b018b0230d4a51648 -->
<!-- START_12e37982cc5398c7100e59625ebb5514 -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/users" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/users");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/users</code></p>
<!-- END_12e37982cc5398c7100e59625ebb5514 -->
<!-- START_8653614346cb0e3d444d164579a0a0a2 -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/users/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/users/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/users/{user}</code></p>
<!-- END_8653614346cb0e3d444d164579a0a0a2 -->
<!-- START_11ae28146a4d70ba9a0af9b65d290ad5 -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/users/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/users/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/users/{user}/edit</code></p>
<!-- END_11ae28146a4d70ba9a0af9b65d290ad5 -->
<!-- START_48a3115be98493a3c866eb0e23347262 -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/users/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/users/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/users/{user}</code></p>
<p><code>PATCH api/users/{user}</code></p>
<!-- END_48a3115be98493a3c866eb0e23347262 -->
<!-- START_d2db7a9fe3abd141d5adbc367a88e969 -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/users/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/users/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/users/{user}</code></p>
<!-- END_d2db7a9fe3abd141d5adbc367a88e969 -->
<!-- START_813959d892e56ee028bd68db31044e06 -->
<h2>api/user/roles/{user}</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/user/roles/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/user/roles/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/user/roles/{user}</code></p>
<!-- END_813959d892e56ee028bd68db31044e06 -->
<!-- START_6d0e48a57b5a240e5e913d59e7984a0c -->
<h2>api/user/roles</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/user/roles" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/user/roles");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/user/roles</code></p>
<!-- END_6d0e48a57b5a240e5e913d59e7984a0c -->
<!-- START_6470e6b987921f5c45bf7a2d8e674f57 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/roles" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/roles");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/roles</code></p>
<!-- END_6470e6b987921f5c45bf7a2d8e674f57 -->
<!-- START_805a99be760d5093d96670b9dfe2da91 -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/roles/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/roles/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/roles/create</code></p>
<!-- END_805a99be760d5093d96670b9dfe2da91 -->
<!-- START_90c780acaefab9740431579512d07101 -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/roles" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/roles");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/roles</code></p>
<!-- END_90c780acaefab9740431579512d07101 -->
<!-- START_eb37fe1fa9305b4b78850dd87031670b -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/roles/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/roles/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/roles/{role}</code></p>
<!-- END_eb37fe1fa9305b4b78850dd87031670b -->
<!-- START_92c0d5394c54c61004fbad7be1e1edb6 -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/roles/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/roles/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/roles/{role}/edit</code></p>
<!-- END_92c0d5394c54c61004fbad7be1e1edb6 -->
<!-- START_cccebfff0074c9c5f499e215eee84e86 -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/roles/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/roles/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/roles/{role}</code></p>
<p><code>PATCH api/roles/{role}</code></p>
<!-- END_cccebfff0074c9c5f499e215eee84e86 -->
<!-- START_9aab750214722ffceebef64f24a2e175 -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/roles/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/roles/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/roles/{role}</code></p>
<!-- END_9aab750214722ffceebef64f24a2e175 -->
<!-- START_3a5eb837546d2ff22d1b86ed1cc2eb43 -->
<h2>api/roles/{role}/ability</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/roles/1/ability" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/roles/1/ability");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/roles/{role}/ability</code></p>
<!-- END_3a5eb837546d2ff22d1b86ed1cc2eb43 -->
<!-- START_5019b644d22388cfc6f1537611e8df90 -->
<h2>api/roles/{role}/ability</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/roles/1/ability" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/roles/1/ability");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/roles/{role}/ability</code></p>
<!-- END_5019b644d22388cfc6f1537611e8df90 -->
<!-- START_ed8ced07a2186d44fa31e6f39b573d1c -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/permission" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/permission");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/permission</code></p>
<!-- END_ed8ced07a2186d44fa31e6f39b573d1c -->
<!-- START_9414af05a05a1efe9c0616454aa7e094 -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/permission/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/permission/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/permission/create</code></p>
<!-- END_9414af05a05a1efe9c0616454aa7e094 -->
<!-- START_a7d5938ae7f97586fd39e8af86474ed0 -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/permission" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/permission");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/permission</code></p>
<!-- END_a7d5938ae7f97586fd39e8af86474ed0 -->
<!-- START_3e4aed24210532948f07765859169f4c -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/permission/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/permission/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/permission/{permission}</code></p>
<!-- END_3e4aed24210532948f07765859169f4c -->
<!-- START_52c9e08cd31195544230c8ec71df40e5 -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/permission/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/permission/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/permission/{permission}/edit</code></p>
<!-- END_52c9e08cd31195544230c8ec71df40e5 -->
<!-- START_64a4536de971d52979e1280aacda5e2d -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/permission/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/permission/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/permission/{permission}</code></p>
<p><code>PATCH api/permission/{permission}</code></p>
<!-- END_64a4536de971d52979e1280aacda5e2d -->
<!-- START_827b92bc42ba3b29a9e14cb82483aebf -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/permission/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/permission/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/permission/{permission}</code></p>
<!-- END_827b92bc42ba3b29a9e14cb82483aebf -->
<!-- START_ea7749e6174de1110b56c2798ce62c44 -->
<h2>api/permission/{name}/search</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/permission/1/search" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/permission/1/search");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/permission/{name}/search</code></p>
<!-- END_ea7749e6174de1110b56c2798ce62c44 -->
<!-- START_ea3c0f5dd4c5998fe9b798257f78f850 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/menu" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/menu");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/menu</code></p>
<!-- END_ea3c0f5dd4c5998fe9b798257f78f850 -->
<!-- START_ed97e8bc9cc67a90905e9878dd01494f -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/menu/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/menu/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/menu/create</code></p>
<!-- END_ed97e8bc9cc67a90905e9878dd01494f -->
<!-- START_351afbf68cdc889ba190421734e7eb10 -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/menu" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/menu");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/menu</code></p>
<!-- END_351afbf68cdc889ba190421734e7eb10 -->
<!-- START_65d9dd4de943cdcbf510b2ed973f7a4c -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/menu/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/menu/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/menu/{menu}</code></p>
<!-- END_65d9dd4de943cdcbf510b2ed973f7a4c -->
<!-- START_3029d3edd03f0a003dea5998577ffd23 -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/menu/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/menu/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/menu/{menu}/edit</code></p>
<!-- END_3029d3edd03f0a003dea5998577ffd23 -->
<!-- START_f53dba6cfb54b3d5fce826d2ec183d0e -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/menu/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/menu/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/menu/{menu}</code></p>
<p><code>PATCH api/menu/{menu}</code></p>
<!-- END_f53dba6cfb54b3d5fce826d2ec183d0e -->
<!-- START_5e4d0fa5178d3208821b11d9f6304860 -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/menu/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/menu/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/menu/{menu}</code></p>
<!-- END_5e4d0fa5178d3208821b11d9f6304860 -->
<!-- START_1ea3a946b68b79ffed1b616693adbd66 -->
<h2>api/menu/{menu}/buttons</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/menu/1/buttons" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/menu/1/buttons");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/menu/{menu}/buttons</code></p>
<!-- END_1ea3a946b68b79ffed1b616693adbd66 -->
<!-- START_c6a2542e6f559a7fbbee119164fba6c4 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/company" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/company");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/company</code></p>
<!-- END_c6a2542e6f559a7fbbee119164fba6c4 -->
<!-- START_347caed0590b5f9ea5022bf7ccf8498d -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/company/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/company/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/company/create</code></p>
<!-- END_347caed0590b5f9ea5022bf7ccf8498d -->
<!-- START_153d2119af6a72086ba88bc83d58b6b2 -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/company" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/company");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/company</code></p>
<!-- END_153d2119af6a72086ba88bc83d58b6b2 -->
<!-- START_ad3856c2e686f6bdc3e894e8203049bc -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/company/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/company/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/company/{company}</code></p>
<!-- END_ad3856c2e686f6bdc3e894e8203049bc -->
<!-- START_8f9a924056ffcc5f34bab676460bbd69 -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/company/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/company/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/company/{company}/edit</code></p>
<!-- END_8f9a924056ffcc5f34bab676460bbd69 -->
<!-- START_2ecc0bb9bcbb89fc130ff0e2da45de7e -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/company/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/company/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/company/{company}</code></p>
<p><code>PATCH api/company/{company}</code></p>
<!-- END_2ecc0bb9bcbb89fc130ff0e2da45de7e -->
<!-- START_17894c0b6f5be7517e5738594a8a845f -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/company/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/company/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/company/{company}</code></p>
<!-- END_17894c0b6f5be7517e5738594a8a845f -->
<!-- START_2c4519405a3f71f61c595fda62a16724 -->
<h2>api/company/{company}/search</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/company/1/search" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/company/1/search");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/company/{company}/search</code></p>
<!-- END_2c4519405a3f71f61c595fda62a16724 -->
<!-- START_6e7e2bdf41dacf38a5c6768ef817e8b6 -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/upload" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/upload");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/upload</code></p>
<!-- END_6e7e2bdf41dacf38a5c6768ef817e8b6 -->
<!-- START_f4b636200babbb5075d14fe62e83ccc3 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/devicetype" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/devicetype");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/devicetype</code></p>
<!-- END_f4b636200babbb5075d14fe62e83ccc3 -->
<!-- START_7532652f0c64cb40660e72a370267916 -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/devicetype/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/devicetype/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/devicetype/create</code></p>
<!-- END_7532652f0c64cb40660e72a370267916 -->
<!-- START_80ff65197711fbf252aa7322e244155e -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/devicetype" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/devicetype");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/devicetype</code></p>
<!-- END_80ff65197711fbf252aa7322e244155e -->
<!-- START_9db21b5648985d78089ff0917888e27a -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/devicetype/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/devicetype/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/devicetype/{devicetype}</code></p>
<!-- END_9db21b5648985d78089ff0917888e27a -->
<!-- START_c297e2ce34366d3569c6ec52bdfb937f -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/devicetype/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/devicetype/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/devicetype/{devicetype}/edit</code></p>
<!-- END_c297e2ce34366d3569c6ec52bdfb937f -->
<!-- START_1d40aa06be20140ed3d71f7469f27adf -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/devicetype/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/devicetype/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/devicetype/{devicetype}</code></p>
<p><code>PATCH api/devicetype/{devicetype}</code></p>
<!-- END_1d40aa06be20140ed3d71f7469f27adf -->
<!-- START_a40d06c423e0cdf72b13dd83a4712620 -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/devicetype/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/devicetype/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/devicetype/{devicetype}</code></p>
<!-- END_a40d06c423e0cdf72b13dd83a4712620 -->
<!-- START_c663ce8809cc8871a141dab622682803 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/deviceinfo" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/deviceinfo");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/deviceinfo</code></p>
<!-- END_c663ce8809cc8871a141dab622682803 -->
<!-- START_e75a192871ef7cb3f7e760cf2b768924 -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/deviceinfo/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/deviceinfo/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/deviceinfo/create</code></p>
<!-- END_e75a192871ef7cb3f7e760cf2b768924 -->
<!-- START_8f6e6386afa86ca791b7864df7aec7bd -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/deviceinfo" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/deviceinfo");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/deviceinfo</code></p>
<!-- END_8f6e6386afa86ca791b7864df7aec7bd -->
<!-- START_62c17bbd2c346380767019edde742587 -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/deviceinfo/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/deviceinfo/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/deviceinfo/{deviceinfo}</code></p>
<!-- END_62c17bbd2c346380767019edde742587 -->
<!-- START_c3f2660116257f733358c11b9dec1866 -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/deviceinfo/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/deviceinfo/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/deviceinfo/{deviceinfo}/edit</code></p>
<!-- END_c3f2660116257f733358c11b9dec1866 -->
<!-- START_a2b6cfbb7a324dce064b2dd214aa4498 -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/deviceinfo/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/deviceinfo/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/deviceinfo/{deviceinfo}</code></p>
<p><code>PATCH api/deviceinfo/{deviceinfo}</code></p>
<!-- END_a2b6cfbb7a324dce064b2dd214aa4498 -->
<!-- START_e74c8891bee8a9b468fc5ab90ee08222 -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/deviceinfo/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/deviceinfo/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/deviceinfo/{deviceinfo}</code></p>
<!-- END_e74c8891bee8a9b468fc5ab90ee08222 -->
<!-- START_ea6d495eb1072184a8f2bbb3107d2e50 -->
<h2>api/deviceinfo/devicetype/all</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/deviceinfo/devicetype/all" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/deviceinfo/devicetype/all");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/deviceinfo/devicetype/all</code></p>
<!-- END_ea6d495eb1072184a8f2bbb3107d2e50 -->
<!-- START_e31bf89cbee4a10711dd5ccd499f1ba7 -->
<h2>获取公司所有区域</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/deviceinfo/1/area" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/deviceinfo/1/area");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/deviceinfo/{company}/area</code></p>
<!-- END_e31bf89cbee4a10711dd5ccd499f1ba7 -->
<!-- START_3d5202ea77663113936762c88219f462 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/area" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/area");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/area</code></p>
<!-- END_3d5202ea77663113936762c88219f462 -->
<!-- START_e38a389061988a1c39b5c5e281cc5dd2 -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/area/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/area/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/area/create</code></p>
<!-- END_e38a389061988a1c39b5c5e281cc5dd2 -->
<!-- START_7ed252c2dc429709673a5606028a041c -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/area" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/area");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/area</code></p>
<!-- END_7ed252c2dc429709673a5606028a041c -->
<!-- START_ce044e830365a74d1814fba2ccfbdcf2 -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/area/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/area/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/area/{area}</code></p>
<!-- END_ce044e830365a74d1814fba2ccfbdcf2 -->
<!-- START_5bf1b86436b42056cf23170bf578de3c -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/area/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/area/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/area/{area}/edit</code></p>
<!-- END_5bf1b86436b42056cf23170bf578de3c -->
<!-- START_fca383b43a56a9d42076d8814d821f8f -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/area/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/area/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/area/{area}</code></p>
<p><code>PATCH api/area/{area}</code></p>
<!-- END_fca383b43a56a9d42076d8814d821f8f -->
<!-- START_41607497dffa9063ab3e05c18055526d -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/area/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/area/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/area/{area}</code></p>
<!-- END_41607497dffa9063ab3e05c18055526d -->
<!-- START_024021c3c17f0cb3ad10ff7ab83b1aa0 -->
<h2>获取列表</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/data" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/data");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/data</code></p>
<!-- END_024021c3c17f0cb3ad10ff7ab83b1aa0 -->
<!-- START_e08bb40676306114b7dd6cc0e4451cfb -->
<h2>api/alarm/index</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/alarm/index" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/alarm/index");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/alarm/index</code></p>
<!-- END_e08bb40676306114b7dd6cc0e4451cfb -->
<!-- START_d9cb0b98181d8e67025b50d915513d20 -->
<h2>api/statistic/index</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/statistic/index" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/statistic/index");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/statistic/index</code></p>
<!-- END_d9cb0b98181d8e67025b50d915513d20 -->
<!-- START_4c552769545246b40f79760e3936a666 -->
<h2>获取大棚</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/monitor/index" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/monitor/index");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/monitor/index</code></p>
<!-- END_4c552769545246b40f79760e3936a666 -->
<!-- START_73f47f97e2a3b2ef4ca75f0ce132b40c -->
<h2>获取历史数据</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/monitor/data" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/monitor/data");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/monitor/data</code></p>
<!-- END_73f47f97e2a3b2ef4ca75f0ce132b40c -->
<!-- START_8d19b1f39af9dd904b978ace4acd9164 -->
<h2>获取实时数据</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/monitor/realdata" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/monitor/realdata");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/monitor/realdata</code></p>
<!-- END_8d19b1f39af9dd904b978ace4acd9164 -->
<!-- START_7b3e102b08a8f9406ff22e2b3a62d635 -->
<h2>获取一个区域的所有设备</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/monitor/areadevice" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/monitor/areadevice");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/monitor/areadevice</code></p>
<!-- END_7b3e102b08a8f9406ff22e2b3a62d635 -->
<!-- START_dbc244e733096ef29bab6e4d3aac3321 -->
<h2>api/userlog</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/userlog" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/userlog");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/userlog</code></p>
<!-- END_dbc244e733096ef29bab6e4d3aac3321 -->
<!-- START_3191cca78138f32d25c18b178ff4f47b -->
<h2>更新设备状态</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/control/1/update" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/control/1/update");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/control/{pdi}/update</code></p>
<!-- END_3191cca78138f32d25c18b178ff4f47b -->
<!-- START_2268814d7ef21e4a7515c5f7d23e961c -->
<h2>获取设备</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/control/device" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/control/device");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/control/device</code></p>
<!-- END_2268814d7ef21e4a7515c5f7d23e961c -->
<!-- START_ae88d7123769b8910e4ab82b76710fa3 -->
<h2>获取设备参数`</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/control/devicedata" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/control/devicedata");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/control/devicedata</code></p>
<!-- END_ae88d7123769b8910e4ab82b76710fa3 -->
<!-- START_ae1193b2f00caa1cacfb768f03f54970 -->
<h2>保存命令</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/control/command" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/control/command");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/control/command</code></p>
<!-- END_ae1193b2f00caa1cacfb768f03f54970 -->
<!-- START_2f277aff1f254d4d25a116bdd2748bfb -->
<h2>api/control/switch</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/control/switch" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/control/switch");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/control/switch</code></p>
<!-- END_2f277aff1f254d4d25a116bdd2748bfb -->
<!-- START_68117b5ac8d099fc14ba849261555054 -->
<h2>api/control/out</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/control/out" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/control/out");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/control/out</code></p>
<!-- END_68117b5ac8d099fc14ba849261555054 -->
<!-- START_8afcae95d3f5c5e6be9b881a34b7ca3d -->
<h2>api/control/index</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/control/index" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/control/index");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/control/index</code></p>
<!-- END_8afcae95d3f5c5e6be9b881a34b7ca3d -->
<!-- START_4e8534b6a486896726b65923917f7ca2 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warndefine" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warndefine");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warndefine</code></p>
<!-- END_4e8534b6a486896726b65923917f7ca2 -->
<!-- START_36fb678013a6cb6daee68478e4c0f9bc -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warndefine/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warndefine/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warndefine/create</code></p>
<!-- END_36fb678013a6cb6daee68478e4c0f9bc -->
<!-- START_f18770e1da35aef8fb3f3967935eab17 -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/warndefine" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warndefine");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/warndefine</code></p>
<!-- END_f18770e1da35aef8fb3f3967935eab17 -->
<!-- START_0c30494c75212b0f8245e652c506022e -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warndefine/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warndefine/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warndefine/{warndefine}</code></p>
<!-- END_0c30494c75212b0f8245e652c506022e -->
<!-- START_d03ad010e5d7ab740e9b06db271217fb -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warndefine/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warndefine/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warndefine/{warndefine}/edit</code></p>
<!-- END_d03ad010e5d7ab740e9b06db271217fb -->
<!-- START_ecbeb9fa43c3686d66d48bdddb8a9a41 -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/warndefine/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warndefine/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/warndefine/{warndefine}</code></p>
<p><code>PATCH api/warndefine/{warndefine}</code></p>
<!-- END_ecbeb9fa43c3686d66d48bdddb8a9a41 -->
<!-- START_a8fc530c9e27fe766c9164e7f70311b9 -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/warndefine/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warndefine/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/warndefine/{warndefine}</code></p>
<!-- END_a8fc530c9e27fe766c9164e7f70311b9 -->
<!-- START_6b0f39e5466d567475ea825c6f4d4c54 -->
<h2>api/realwarn</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/realwarn" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/realwarn");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/realwarn</code></p>
<!-- END_6b0f39e5466d567475ea825c6f4d4c54 -->
<!-- START_949588044716bc1c414c588da881b6c4 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warnnotify" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnnotify");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warnnotify</code></p>
<!-- END_949588044716bc1c414c588da881b6c4 -->
<!-- START_d9bb00a9c9c73393d4cd37598671b41d -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warnnotify/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnnotify/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warnnotify/create</code></p>
<!-- END_d9bb00a9c9c73393d4cd37598671b41d -->
<!-- START_f9b2a5302f70b90ba049c120d55b2c98 -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/warnnotify" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnnotify");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/warnnotify</code></p>
<!-- END_f9b2a5302f70b90ba049c120d55b2c98 -->
<!-- START_334de7e08b4c4b0bcd364ab33a25c1d5 -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warnnotify/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnnotify/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warnnotify/{warnnotify}</code></p>
<!-- END_334de7e08b4c4b0bcd364ab33a25c1d5 -->
<!-- START_0fe0936b63ec132930c1ae6bc07f0b7d -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warnnotify/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnnotify/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warnnotify/{warnnotify}/edit</code></p>
<!-- END_0fe0936b63ec132930c1ae6bc07f0b7d -->
<!-- START_b0b3d9f718206c8ee9eb29948d1fb843 -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/warnnotify/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnnotify/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/warnnotify/{warnnotify}</code></p>
<p><code>PATCH api/warnnotify/{warnnotify}</code></p>
<!-- END_b0b3d9f718206c8ee9eb29948d1fb843 -->
<!-- START_cdcb2969d73a203679468542fa1098a6 -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/warnnotify/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnnotify/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/warnnotify/{warnnotify}</code></p>
<!-- END_cdcb2969d73a203679468542fa1098a6 -->
<!-- START_f86c6421ecded85466cfb9cde3838057 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warnuser" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnuser");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warnuser</code></p>
<!-- END_f86c6421ecded85466cfb9cde3838057 -->
<!-- START_180363b8df963e13ebf337e4163fe575 -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warnuser/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnuser/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warnuser/create</code></p>
<!-- END_180363b8df963e13ebf337e4163fe575 -->
<!-- START_3e689375e5b07f2e0d95827b88559891 -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/warnuser" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnuser");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/warnuser</code></p>
<!-- END_3e689375e5b07f2e0d95827b88559891 -->
<!-- START_598b75a739584cfd0231623c52695e14 -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warnuser/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnuser/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warnuser/{warnuser}</code></p>
<!-- END_598b75a739584cfd0231623c52695e14 -->
<!-- START_9e90898e194c3cc49effa407850e6714 -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/warnuser/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnuser/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/warnuser/{warnuser}/edit</code></p>
<!-- END_9e90898e194c3cc49effa407850e6714 -->
<!-- START_38b4367639adc41aa2ccb1fd96546b41 -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/warnuser/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnuser/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/warnuser/{warnuser}</code></p>
<p><code>PATCH api/warnuser/{warnuser}</code></p>
<!-- END_38b4367639adc41aa2ccb1fd96546b41 -->
<!-- START_3961efafd616a6101a20ab89fbe69940 -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/warnuser/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnuser/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/warnuser/{warnuser}</code></p>
<!-- END_3961efafd616a6101a20ab89fbe69940 -->
<!-- START_2c5ca5013fb93421d0763349ef02b0ed -->
<h2>告警设置</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/warnuser/1/warnsetting" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/warnuser/1/warnsetting");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/warnuser/{warnuser}/warnsetting</code></p>
<!-- END_2c5ca5013fb93421d0763349ef02b0ed -->
<!-- START_ada5d5aec4765e54e2411f1c9c4f2d02 -->
<h2>历史告警统计</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/report" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/report");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/report</code></p>
<!-- END_ada5d5aec4765e54e2411f1c9c4f2d02 -->
<!-- START_c0866f5c5ce1acd48cd9dbf0f169bdc0 -->
<h2>历史统计</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/report/historysum" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/report/historysum");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/report/historysum</code></p>
<!-- END_c0866f5c5ce1acd48cd9dbf0f169bdc0 -->
<!-- START_b72595058230a3b7ca4de1abb456a0df -->
<h2>资产统计</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/report/assetsum" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/report/assetsum");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/report/assetsum</code></p>
<!-- END_b72595058230a3b7ca4de1abb456a0df -->
<!-- START_64746d3437f524a2386fd24d151ce582 -->
<h2>api/video</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/video" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/video");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/video</code></p>
<!-- END_64746d3437f524a2386fd24d151ce582 -->
<!-- START_b498c2804097193657187cbd443b4c67 -->
<h2>动环类型</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/donghuang/index" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/donghuang/index");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/donghuang/index</code></p>
<!-- END_b498c2804097193657187cbd443b4c67 -->
<!-- START_cb7f75ecc915868601dd4baa1240bc79 -->
<h2>根据类型获取设备</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/donghuang/device" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/donghuang/device");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/donghuang/device</code></p>
<!-- END_cb7f75ecc915868601dd4baa1240bc79 -->
<!-- START_f736c6526812d5e0625489bbc99f4a9e -->
<h2>动环数据</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/donghuang/realdata" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/donghuang/realdata");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/donghuang/realdata</code></p>
<!-- END_f736c6526812d5e0625489bbc99f4a9e -->
<!-- START_6f5372a6fbf5d50879db6d55f637322e -->
<h2>保存设备</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/donghuang/storedevice" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/donghuang/storedevice");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/donghuang/storedevice</code></p>
<!-- END_6f5372a6fbf5d50879db6d55f637322e -->
<!-- START_51674314488f476c2967f9eadcd98309 -->
<h2>更新设备</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/donghuang/1/update" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/donghuang/1/update");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/donghuang/{id}/update</code></p>
<!-- END_51674314488f476c2967f9eadcd98309 -->
<!-- START_1e135f27b605ad244f45383a2c06e376 -->
<h2>删除设备</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/donghuang/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/donghuang/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/donghuang/{id}</code></p>
<!-- END_1e135f27b605ad244f45383a2c06e376 -->
<!-- START_b3a58c7f4ae073e450fbacfad3a0ef01 -->
<h2>系统配置</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/system/index" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/system/index");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/system/index</code></p>
<!-- END_b3a58c7f4ae073e450fbacfad3a0ef01 -->
<!-- START_a3d1cfb355985f65429bb1fcc8c9dd84 -->
<h2>邮箱保存</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/system/store" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/system/store");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/system/store</code></p>
<!-- END_a3d1cfb355985f65429bb1fcc8c9dd84 -->
<!-- START_502e5dbffcfb6baf43d049e7ddd71aff -->
<h2>测试邮箱</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/system/testsend" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/system/testsend");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/system/testsend</code></p>
<!-- END_502e5dbffcfb6baf43d049e7ddd71aff -->
<!-- START_b731d6352802f933374af6b601917e45 -->
<h2>短信保存</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/system/storesms" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/system/storesms");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/system/storesms</code></p>
<!-- END_b731d6352802f933374af6b601917e45 -->
<!-- START_893a8b855c97ec4d3fc295288199fe5d -->
<h2>测试短信</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/system/testsendsms" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/system/testsendsms");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/system/testsendsms</code></p>
<!-- END_893a8b855c97ec4d3fc295288199fe5d -->
<!-- START_f40f75efe0bf540e801f8c15e335ec76 -->
<h2>Display a listing of the resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/apk" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/apk");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/apk</code></p>
<!-- END_f40f75efe0bf540e801f8c15e335ec76 -->
<!-- START_fdda0aea20e312502664f80bdecf169c -->
<h2>Show the form for creating a new resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/apk/create" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/apk/create");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/apk/create</code></p>
<!-- END_fdda0aea20e312502664f80bdecf169c -->
<!-- START_3eae5b2b2c2b8cbd9dad4da927d5a640 -->
<h2>Store a newly created resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/api/apk" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/apk");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST api/apk</code></p>
<!-- END_3eae5b2b2c2b8cbd9dad4da927d5a640 -->
<!-- START_7927512ecb15a66c5d57751f6edab347 -->
<h2>Display the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/apk/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/apk/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/apk/{apk}</code></p>
<!-- END_7927512ecb15a66c5d57751f6edab347 -->
<!-- START_099dd6e81b404db25a6daae9b2707d58 -->
<h2>Show the form for editing the specified resource.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/api/apk/1/edit" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/apk/1/edit");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (429):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Too Many Attempts."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET api/apk/{apk}/edit</code></p>
<!-- END_099dd6e81b404db25a6daae9b2707d58 -->
<!-- START_528aa18a9b75bc9c6baf7beef1eb8ebd -->
<h2>Update the specified resource in storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X PUT "http://localhost/api/apk/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/apk/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "PUT",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>PUT api/apk/{apk}</code></p>
<p><code>PATCH api/apk/{apk}</code></p>
<!-- END_528aa18a9b75bc9c6baf7beef1eb8ebd -->
<!-- START_c9e79075ed2a6cd65f2ffc235f691446 -->
<h2>Remove the specified resource from storage.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X DELETE "http://localhost/api/apk/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/api/apk/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>DELETE api/apk/{apk}</code></p>
<!-- END_c9e79075ed2a6cd65f2ffc235f691446 -->
<!-- START_66e08d3cc8222573018fed49e121e96d -->
<h2>Show the application&#039;s login form.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/login" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/login");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">null</code></pre>
<h3>HTTP Request</h3>
<p><code>GET login</code></p>
<!-- END_66e08d3cc8222573018fed49e121e96d -->
<!-- START_ba35aa39474cb98cfb31829e70eb8b74 -->
<h2>Handle a login request to the application.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/login" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/login");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST login</code></p>
<!-- END_ba35aa39474cb98cfb31829e70eb8b74 -->
<!-- START_e65925f23b9bc6b93d9356895f29f80c -->
<h2>Log the user out of the application.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/logout" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/logout");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST logout</code></p>
<!-- END_e65925f23b9bc6b93d9356895f29f80c -->
<!-- START_ff38dfb1bd1bb7e1aa24b4e1792a9768 -->
<h2>Show the application registration form.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/register" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/register");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">null</code></pre>
<h3>HTTP Request</h3>
<p><code>GET register</code></p>
<!-- END_ff38dfb1bd1bb7e1aa24b4e1792a9768 -->
<!-- START_d7aad7b5ac127700500280d511a3db01 -->
<h2>Handle a registration request for the application.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/register" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/register");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST register</code></p>
<!-- END_d7aad7b5ac127700500280d511a3db01 -->
<!-- START_d72797bae6d0b1f3a341ebb1f8900441 -->
<h2>Display the form to request a password reset link.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/password/reset" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/password/reset");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">null</code></pre>
<h3>HTTP Request</h3>
<p><code>GET password/reset</code></p>
<!-- END_d72797bae6d0b1f3a341ebb1f8900441 -->
<!-- START_feb40f06a93c80d742181b6ffb6b734e -->
<h2>Send a reset link to the given user.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/password/email" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/password/email");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST password/email</code></p>
<!-- END_feb40f06a93c80d742181b6ffb6b734e -->
<!-- START_e1605a6e5ceee9d1aeb7729216635fd7 -->
<h2>Display the password reset view for the given token.</h2>
<p>If no token is present, display the link request form.</p>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/password/reset/1" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/password/reset/1");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (200):</p>
</blockquote>
<pre><code class="language-json">null</code></pre>
<h3>HTTP Request</h3>
<p><code>GET password/reset/{token}</code></p>
<!-- END_e1605a6e5ceee9d1aeb7729216635fd7 -->
<!-- START_cafb407b7a846b31491f97719bb15aef -->
<h2>Reset the given user&#039;s password.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X POST "http://localhost/password/reset" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/password/reset");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<h3>HTTP Request</h3>
<p><code>POST password/reset</code></p>
<!-- END_cafb407b7a846b31491f97719bb15aef -->
<!-- START_cb859c8e84c35d7133b6a6c8eac253f8 -->
<h2>Show the application dashboard.</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/home" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/home");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (401):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Unauthenticated."
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET home</code></p>
<!-- END_cb859c8e84c35d7133b6a6c8eac253f8 -->
<!-- START_c1aa27515bf03f12d5698af59e31585a -->
<h2>test</h2>
<blockquote>
<p>Example request:</p>
</blockquote>
<pre><code class="language-bash">curl -X GET -G "http://localhost/test" </code></pre>
<pre><code class="language-javascript">const url = new URL("http://localhost/test");

let headers = {
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response =&gt; response.json())
    .then(json =&gt; console.log(json));</code></pre>
<blockquote>
<p>Example response (500):</p>
</blockquote>
<pre><code class="language-json">{
    "message": "Server Error"
}</code></pre>
<h3>HTTP Request</h3>
<p><code>GET test</code></p>
<!-- END_c1aa27515bf03f12d5698af59e31585a -->
      </div>
      <div class="dark-box">
                        <div class="lang-selector">
                                    <a href="#" data-language-name="bash">bash</a>
                                    <a href="#" data-language-name="javascript">javascript</a>
                              </div>
                </div>
    </div>
  </body>
</html>